import 'package:flutter/material.dart';
import '../../widgets/AppColors.dart';

class ContaminateItem extends StatelessWidget {
  final String icon;
  final String name;
  final String actualValue;
  final String standardValue;
  final String status;

  const ContaminateItem({
    super.key,
    required this.icon,
    required this.name,
    required this.actualValue,
    required this.standardValue,
    required this.status,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.only(top: 16, bottom: 16),
      margin: const EdgeInsets.symmetric(vertical: 4.0, horizontal: 8.0),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(8.0), // 圆角边框
        color: AppColors.cardColor, // 背景色
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: [
          Image(
              image: AssetImage(
                  icon)), //|| AssetImage('assets/images/cloud/icon_month.png')),
          Text(
            name,
            style: TextStyle(fontSize: 15, color: AppColors.textPrimary),
          ),
          Text(
            actualValue,
            style: TextStyle(fontSize: 15, color: AppColors.textSecondary),
          ),
          Text(
            standardValue,
            style: TextStyle(fontSize: 15, color: AppColors.textSecondary),
          ),
          Text(
            status,
            style: const TextStyle(fontSize: 15, color: Color(0xFF2AB6F7)),
          ),
          const Image(image: AssetImage('assets/images/setting/push.png')),
        ],
      ),
    );
  }
}
